package asteroids.model.programs.type;

public class DoubleType extends T{

	private double value;
	
	public DoubleType(double value){
		this.value = value;
	}
	
	public double getValue(){
		return value;
	}
	
	public void setValue(T type){
		if(type instanceof DoubleType)
			this.value = ((DoubleType) type).getValue();
	}
	public void print(){
		System.out.println(getValue());
	}

}
